package com.hk.housekeeping.order.wxPay.utils;

import com.hk.housekeeping.order.wxPay.entity.Account;

import javax.servlet.http.HttpServletRequest;

/**
 * 验证登录的账户信息
 */
public class AccountUtils {
    public static Account verifyAccount(HttpServletRequest request) {
        Account account = (Account)request.getSession().getAttribute("account");
        if (account != null) {
            return account;
        }
        return null;
    }
}
